﻿using BasicModuleWebApiJWTAuthorization.Model;
using Microsoft.EntityFrameworkCore;

namespace BasicModuleWebApiJWTAuthorization.DBContextx
{
    public class MysqlDBContext : DbContext
    {
        public MysqlDBContext(DbContextOptions options) : base(options)
        {

        }

        //用户表
        public DbSet<Permission> Permissions { get; set; }

        //用户权限
        public DbSet<PermissionDefine>  permissionDefines { get; set; }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User>  users { get; set; }

        /// <summary>
        ///  权限策略 (用户权限)
        /// </summary>
        public DbSet<UserPermission>  userPermissions { get; set; }
    }
}
